//
//  HP_ClassifyCollectionViewCell.m
//  JinFuThree
//
//  Created by 爱尚 on 2018/8/30.
//  Copyright © 2018年 毛韶谦. All rights reserved.
//

#import "HP_ClassifyCollectionViewCell.h"

@implementation HP_ClassifyCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        [self initialize];
    }
    return self;
}

-(void)initialize{
    _iconimageView = [[UIImageView alloc]init];
    _iconimageView.image = [UIImage imageNamed:@"home_ic_compture"];
    [self addSubview:_iconimageView];
    [_iconimageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(self);
        make.top.mas_equalTo(self.mas_top).offset(20);
        make.width.height.mas_offset(@44);
    }];
    
    _titleLabel = [[UILabel alloc]init];
    _titleLabel.text = @"3C";
    _titleLabel.font = [UIFont systemFontOfSize:13];
    _titleLabel.textAlignment = NSTextAlignmentCenter;
    _titleLabel.textColor = ThemeMaoBlackColor;
    [self addSubview:_titleLabel];
    [_titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.iconimageView.mas_bottom).offset(5);
        make.width.mas_equalTo(self);
        make.centerX.mas_equalTo(self);
        make.height.mas_offset(@15);
    }];
    
    
}
@end
